{% extends "base.html" %}

{% block title %}系统设置 - BBDown Web UI{% endblock %}

{% block content %}
<div class="container">
    <h1 class="mb-4">系统设置</h1>
    
    <!-- 用户信息 -->
    <div id="user-info" class="section" style="display: none;">
        <!-- 用户信息将通过JavaScript动态填充 -->
    </div>
    
    <!-- Cookie设置 -->
    <div class="section">
        <h2>Cookie设置</h2>
        <form id="cookie-form">
            <div class="form-group">
                <label for="cookie">B站Cookie：</label>
                <input type="text" class="form-control" id="cookie" name="cookie" placeholder="从浏览器复制的cookie" required>
            </div>
            <button type="submit" class="btn btn-primary">保存Cookie</button>
            <button type="button" class="btn btn-primary" id="verify-cookie" style="background-color: #28a745; border-color: #28a745;">验证Cookie</button>
        </form>
    </div>
</div>
{% endblock %}

{% block extra_js %}
<script src="/static/js/settings.js"></script>
{% endblock %} 